home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DUProjects / Idling / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.4 KB  |  47 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 1 $
  2. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef PART_H
  5. #define PART_H
  6.  
  7. //=======================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWPART_H
  10. #include "FWPart.h"            // FW_CPart
  11. #endif
  12.  
  13. //=======================================================================
  14. class FW_CPart;
  15. class FW_CPresentation;
  16. class FW_CIdler;
  17.  
  18. //=======================================================================
  19. class CIdlingPart : public FW_CPart {
  20. public:
  21.     FW_DECLARE_AUTO(CIdlingPart)
  22.                             CIdlingPart(ODPart* odPart);
  23.     virtual                 ~CIdlingPart();
  24. // new members
  25.     virtual void             MyToggleIdling(Environment* ev);
  26. // overrides
  27. protected:
  28.     virtual void             Initialize(Environment* ev);
  29.     virtual FW_CContent*     NewPartContent(Environment* ev);
  30.     virtual FW_CFrame*        NewFrame(Environment* ev,
  31.                                  ODFrame* odFrame,
  32.                                  FW_CPresentation* presentation,
  33.                                  FW_Boolean fromStorage);
  34.     virtual FW_CWindow*        NewDocumentWindow(Environment* ev);
  35.     virtual FW_Boolean         DoIdle(Environment* ev, 
  36.                                     const FW_CNullEvent& theNullEvent);
  37.     virtual FW_Boolean        DoMenu(Environment* ev,
  38.                                        const FW_CMenuEvent& theMenuEvent);
  39. private:
  40.     FW_CPresentation*         fPresentation;
  41.     FW_CIdler*                fIdler;
  42.     FW_Boolean                fIdlingActive;
  43. };
  44.  
  45. //=======================================================================
  46. #endif
  47.